package cn.hfatec.shms.oa.oaLeave.dao;

import java.util.List;

import cn.hfatec.shms.oa.oaLeave.model.OaLeave;
import cn.hfatec.mybatis.mapper.SqlMapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;

import cn.hfatec.shms.oa.oaLeave.model.OaLeaveParams;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Component("OaLeaveDao")
public interface OaLeaveDao extends SqlMapper {

    /**
     *
     * 查询数据
     *
    */
    public List queryOaLeave(@Param("params") OaLeaveParams params);

    /**
     *
     * 查询数据
     *
     */
    public List queryOaLeaveSum(@Param("params") OaLeaveParams params);
    public List getOaLeaveSum(@Param("params") OaLeaveParams params);

    /**
     *
     * 根据主键获取数据
     *
     */
    public OaLeave getOaLeaveById(Integer id);

    /**
     *
     * 插入数据
     *
     */
    public void insert(OaLeave oaLeave);

    /**
     *
     * 删除数据
     *
     */
    public void delete(Integer id);

    /**
     *
     * 更新数据
     *
     */
    public void update(OaLeave oaLeave);
}
